Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.

[Reviewer: BPA] Add test for SNMP::IPCountTable thread-safety#59

Open
rkday-pro wants to merge 1 commit into
masterfrom
snmp_threading
Open

[Reviewer: BPA] Add test for SNMP::IPCountTable thread-safety#59
rkday-pro wants to merge 1 commit into
masterfrom
snmp_threading

Conversation

@rkday-pro

Copy link
Copy Markdown
Contributor

This test reproduces the issue you raised in https://github.com/Metaswitch/clearwater-issues/issues/2905, by running two threads which both try to use the table 100,000 times, making the race condition very likely to happen. I'm going to send another PR that tries to fix the problem.

@BennettAllen1 BennettAllen1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, have you ran the test though?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants